package org.csmz.class2333.collection;

import java.util.LinkedHashMap;
import java.util.Set;

public class Example06 {
    public static void main (String[] args){
        LinkedHashMap<String,Integer>map = new LinkedHashMap<>();
        map.put("铅笔",10);
        map.put("橡皮",5);
        map.put("钢笔",45);
        map.put("墨水",15);
        Set<String>keys = map.keySet();
        for (String key : keys){
            Integer value = map.get(key);
            System.out.println(key+"->"+value);
        }
    }
}
